export const isAndroid = () => {
  const u = navigator.userAgent;

  return u.indexOf('Android') > -1 || u.indexOf('Adr') > -1;
}

export const isIOS = () => {
  const u = navigator.userAgent;
  
  return u.indexOf('iPhone') > -1 || u.indexOf('iPad') > -1;
}

export const filterBR = (valueSpan) => {
  if(valueSpan && typeof valueSpan === 'string') {
    let br = new RegExp(/&lt;br&gt;/g);
    valueSpan = valueSpan.replace(br, ' ');
    valueSpan = valueSpan.replace(/<\/?br>/g, ' ');
  }
  return valueSpan;
}